//
//  MBDShowAdManager.swift
//  MasterBoy
//
//  Created by kyson on 2023/4/8.
//

import Foundation
import AdSupport
import UIKit

enum GameState: NSInteger {
  case notStarted
  case playing
  case paused
  case ended
}

class MBDShowAdManager : NSObject{

    /// The interstitial ad.
//    private var interstitial: GADInterstitialAd?
    
//    func showAnd(targetVC : GADFullScreenContentDelegate){
        
//        self.startIndicatorAnimating()
//        print(ASIdentifierManager.shared().advertisingIdentifier)
//        let request = GADRequest()
//        GADInterstitialAd.load(withAdUnitID:"ca-app-pub-7896672979027584/1214086071",
//                                    request: request,
//                          completionHandler: { [self] ad, error in
//            
////            self.stopIndicatorAnimationg()
//            if let error = error {
//                print("Failed to load interstitial ad with error: \(error.localizedDescription)")
//                return
//            }
//            interstitial = ad
//            interstitial?.fullScreenContentDelegate = targetVC
//
//            if(interstitial != nil){
//                interstitial!.present(fromRootViewController: targetVC as! UIViewController)
//            }
//        })
//    }
    
}
